package com.damon.android.interview.aidl;

import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
import android.os.RemoteException;

public class GIMService extends Service {
    public GIMService() {
    }

    @Override
    public IBinder onBind(Intent intent) {
        return manager;
    }
    private final GetInformationManager.Stub manager = new GetInformationManager.Stub() {
        @Override
        public String getName(String packname) throws RemoteException {
            return "Damon";
        }

        @Override
        public String getPwd(String packname) throws RemoteException {
            return "pwd";
        }
    };

}
